package com.example.demo.infoapp;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@Configuration
@ConfigurationProperties(prefix = "info.app")
public class InfoApp {

        private String name;
        private String description;
        private String version;

        public void setName(String name) {
                this.name = name;
        }

        public void setDescription(String description) {
                this.description = description;
        }

        public void setVersion(String version) {
                this.version = version;
        }

        @Override
        public String toString() {
                return "InfoApp{" +
                        "name='" + name + '\'' +
                        ", description='" + description + '\'' +
                        ", version='" + version + '\'' +
                        '}';
}
}